<template>
	<view class="content">
		<view class="content-block">
			<view class="title">{{detail.title}}</view>
			<view class="sub-title">发布时间：{{detail.time}}</view>
			<view class="article-content">
				<mp-html :content="detail.content" />
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				detail: {
					title: '',
					time: '',
					content: '',
				}
			}
		},
		onLoad(e) {
			this.type = e.type;
		},
	}
</script>

<style lang="scss">
	page {
		background: #EFEFEF;
	}

	.content {
		width: 100%;
		padding-bottom: 20rpx;

		.content-block {
			background-color: #fff;
			padding: 30rpx;

			.title {
				font-size: 40rpx;
				font-weight: bold;
				margin-bottom: 30rpx;
			}

			.sub-title {
				font-size: 28rpx;
				color: #999;
				margin-bottom: 30rpx;
			}
		}
	}
</style>
